<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title><?php if(!empty($ur_here)): echo ($ur_here); endif; ?></title>
        <meta name="robots" content="noindex, nofollow">
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
            <link rel="stylesheet" type="text/css" href="../Public/styles/general.css" />
            <link rel="stylesheet" type="text/css" href="../Public/styles/main.css" />
    </head>
    <body>

        <div class="list-div">
            <div style="background:#FFF; padding: 20px 50px; margin: 2px;">
                <table align="center" width="400">
                    <tr>
                        <td width="50" valign="top">
                            <?php switch($msg_type): case "0": ?><img src="../Public/images/information.gif" width="32" height="32" border="0" alt="information" /><?php break;?>
                                <?php case "1": ?><img src="images/warning.gif" width="32" height="32" border="0" alt="warning" /><?php break;?>                
                                <?php default: ?>
                                <img src="images/confirm.gif" width="32" height="32" border="0" alt="confirm" /><?php endswitch;?>
                        </td>
                        <td style="font-size: 14px; font-weight: bold"><?php echo ($msg_detail); ?></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td id="redirectionMsg">
                            <?php if(!empty($auto_redirect)): ?>如果您不做出选择，将在 <span id="spanSeconds">3</span> 秒后跳转到第一个链接地址。<?php endif; ?>
                        </td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>
                            <ul style="margin:0; padding:0 10px" class="msg-link">
                                <?php if(is_array($links)): $i = 0; $__LIST__ = $links;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$link): $mod = ($i % 2 );++$i;?><li><a href="<?php echo ($link["href"]); ?>" <?php if(!empty($link['target'])): ?>target="<?php echo ($link["target"]); ?>"<?php endif; ?>><?php echo ($link["text"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
                            </ul>

                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <?php if(!empty($auto_redirect)): ?><script language="JavaScript">
            <!--
            var seconds = 3;
            var defaultUrl = "<?php echo ($default_url); ?>";

            
            onload = function()
            {
                if (defaultUrl == 'javascript:history.go(-1)' && window.history.length == 0)
                {
                    document.getElementById('redirectionMsg').innerHTML = '';
                    return;
                }

                window.setInterval(redirection, 1000);
            }
            function redirection()
            {
                if (seconds <= 0)
                {
                    window.clearInterval();
                    return;
                }

                seconds --;
                document.getElementById('spanSeconds').innerHTML = seconds;

                if (seconds == 0)
                {
                    window.clearInterval();
                    location.href = defaultUrl;
                }
            }
            //-->
        </script>
        <?php endif; ?>
    </body>
</html>